#ifndef FRAMEWIDGET_H
#define FRAMEWIDGET_H

#include <QWidget>
#include <QHash>

class QVBoxLayout;
class QPushButton;
class ClickableFrame;

class FrameWidget : public QWidget
{
    Q_OBJECT

public:
    FrameWidget(QWidget *parent = 0);

    void addFrame(QString filename);
    void removeFrame(QString filename);
    void clear();
    QSize minimumSizeHint() const;


public slots:
    void frameClicked(QString filename);

signals:
    void clicked(QString filename);

private:
    QVBoxLayout *m_layout;
    QHash<QString, ClickableFrame*> *m_frameHash;
};

#endif // FRAMEWIDGET_H
